import request from '@/utils/request'

// 获取城市列表
export function getCitiesList(params) {
  return request({
    url: '/region/findCityList',
    method: 'get',
    params
  })
}

// 添加城市
export function addCity(data) {
  return request({
    url: '/region/addCity',
    method: 'post',
    data
  })
}

// 编辑城市
export function editCity(data) {
  return request({
    url: '/region/editCity',
    method: 'post',
    data
  })
}

// 删除城市
export function removeCity(params) {
  return request({
    url: '/region/removeCity',
    method: 'get',
    params
  })
}

// 城市详情
export function getCityShow(params) {
  return request({
    url: '/region/findCityInfo',
    method: 'get',
    params
  })
}
